/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.improvement.mapper;

import com.koron.improvement.bean.SecurityReportBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SecurityReportMapper {

    /**
     * 列表查询
     * @param map
     * @return
     */
    List<SecurityReportBean> queryForList(Map map);

    /**
     * 列表查询统计
     * @param map
     * @return
     */
    Integer countQueryForList(Map map);

    /**
     * 根据id查询安全报告
     * @param id
     * @return
     */
    SecurityReportBean queryById(String id);

    /**
     * 根据id 删除安全报告
     * @param id
     * @return
     */
    Integer deleteById(String id);

    /**
     * 新增 安全报告
     * @param bean
     * @return
     */
    Integer insert(SecurityReportBean bean);

    /**
     * 修改 安全报告
     * @param bean
     * @return
     */
    Integer update(SecurityReportBean bean);

    /**
     * 修改 安全报告附件
     * @param id
     * @param accessorys
     * @return
     */
    Integer updateToAccessorys(@Param("id") String id, @Param("accessorys") String accessorys);
}
